package pe.com.hermes.hermetic.negocio.service;

import java.sql.SQLException;

import java.util.List;

import pe.com.hermes.hermetic.beans.ConfBean;
import pe.com.hermes.hermetic.beans.UsersNivConfBean;
import pe.com.hermes.hermetic.exception.NiveAutoNotFoundException;
import pe.com.hermes.hermetic.exception.TooManyNiveAutoByUsuaException;

public interface ConfiguracionService {
  public List getListNivConf(String codClieOrig, String codClieDest, String codSucuHTB, String tipProc);
  public int existPedPendAuto(int codClieOrig,int codClieDest, String tipProc, String codSucuHtb);
  public int saveNivAutConf(ConfBean nivAuto, String usuModi, String compModi);
  public int actuNivAutConf(int codNiv, String desNiv,String usuModi,String address);
  public int delNivAutConf(int codNiv, String usuWeb,String nomComp);
  public int getNextNivAuto(int codClieOrig, int codClieDest, int tipProc, int codSucuHtb, int numCateNive);
  public List getListUsuaCliente(int codSucuHTB, int codClie, int indCorp);
  public List getUsuConfNiv(int codNiveAuto, int codSucuHTB, int codClieOrig, int codClieDest, int numNive, int tipProc);
  public int saveUserNivAutConf(int codNiv, String usuWeb, String usuCrea, String compCrea);
  public int actuUsuNivAutConf(int codNiv, int numSecu, String usuWeb, String usuModi,String compModi);
  public int delUsuNivAutConf(int codNiv, int numSecu, String usuModi, String compModi);
  public int copyNivAutConf(int codClieOrig, int codClieDest, int codBancDest, int codSucuHtb, int codPro, String usuModi, String compModi);
  public int getCodClieEleg(String listCodClie, int codClieDest, int tipProc);
  public String getProcCcom(String listCodClie, int codSucuHtb);
  public int getNumNiveAuto(int codClieOrig, int codClieDest, int tipProc, int codSucuHtb);
  public int getNiveAutoByUsua(String usuWeb, int codClieOrig, int codClieDest, int tipProc, int codSucuHtb) throws TooManyNiveAutoByUsuaException,NiveAutoNotFoundException,SQLException;
  public Integer grabarParamGene(Integer codRazoSoci, Integer codCorp,Integer codSucu, Integer codParm,String valorLargo, String valorCorto,String usuario);
  public List<UsersNivConfBean> getListUsersByProcAndClie(int codClieOrig, int codClieDest, int codSucuHtb, int codPro) throws Exception;
}
